/*
 * Copyright (c) 2001, 2002 Boris Pruessmann and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 *    Boris Pruessmann - Initial implementation.
 */
package net.sourceforge.perforce.core.api;

import java.util.Date;

import org.eclipse.core.runtime.IAdaptable;

/**
  * This interface describes the result of a 'p4 changes' command.
  * 
  * @version $Revision: 16 $
  * @author  <a href="mailto:bpruessmann@users.sourceforge.net">Boris Pruessmann</a>
  * 
  * TODO: Remove IAdaptable
  */
public interface IChangesResult extends IAdaptable
{
	// ------------------------------------------------------------------------------------- Methods
	
	/** Returns the id of the changelist.
	  * 
	  * @return the changelist id.
	  */
	Integer getChangelist();

	/** Returns the date of submission.
	  * 
	  * @return submission date.
	  */
	Date getDate();

	/** Returns the owner of the changelist.
	  *
	  * @return the user name.
	  */
	String getUserName();

	/** Returns the client which submitted the changelist.
	  * 
	  * @return the client name.
	  */
	String getClientName();

	/** Returns the status of the changelist.
	  * 
	  * @return the status.
	  */
	String getStatus();	

	/** Returns the description.
	  * 
	  * @return the description.
	  */
	String getDescription();

	/** Returns the corresponding server.
	  * 
	  * @return the perforce server.
	  */
	IPerforceServer getPerforceServer();
}
